<form action="<?php echo $this->url(array("action"=>"edit")) ?>" method="post" id="insert-form" enctype="multipart/form-data">
   <?php $p = $this->photo?>
                <div class="form-left">
                    <label for="PhotoLibID">Thư Viện Hình: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <select name="PhotoLibID">
                    <option value="0">Không chọn</option>
                    <?php foreach ($this->LibPhoto as $lib){?>
                    <option value="<?php echo $lib["ID"]?>"><?php echo $lib["NAME"] ?></option>
                    <?php }?>
                    </select>
                </div>
                <div class="form-left">
                    <label for="NamePhoto">Tên Ảnh: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="text" name="NamePhoto" class="txt" id="NamePhoto" value="<?php echo $p->PHOTO_NAME?>" />
                </div>
                
                <div class="form-left">
                    <label for="PImg">Hình Ảnh: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="file" name="PImg" class="txt" id="PImg" />
                    <?php echo $this->errImg?>
                </div>
                <div class="form-left">
                    <label for="textImg">Link Ảnh: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="text" name="textImg" class="txt" id="textImg" value="<?php echo $p->PHOTO_IMG?>" />
                </div>
                <div class="form-left">
                    <label for="stt">Trạng Thái: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <select name="stt" id="theme">
                    	<?php if($p->STATUS == 1){?>
                        <option value="1" selected="selected">Hiện</option>
                        <option value="0">Ẩn</option>
                        <?php }else{?>
                        <option value="1">Hiện</option>
                        <option value="0" selected="selected">Ẩn</option>
                        <?php }?>
                    </select>
                </div>
               
                <div class="clear" style="text-align:right; width:372px">
                    <input type="submit" value="Save" style="float:right" />
                </div>
 			</form>
 			<script type="text/javascript" src="<?php echo $this->baseUrl()?>/public/js/tablesort.js"></script>
    		<script type="text/javascript" src="<?php echo $this->baseUrl()?>/public/js/jquery.nyromodal-1.6.2.pack.js"></script>
    		<script type="text/javascript" charset="utf-8" src="<?php echo $this->baseUrl()?>/public/js/jquery.uniform.min.js" ></script>